package com.example.sys.attachment.service;

import com.example.core.service.BaseCoreService;
import com.example.sys.attachment.po.SysAttachment;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface SysAttachmentService extends BaseCoreService<SysAttachment> {

    public SysFileService getSysFileService();

    public SysAttachment upload(MultipartFile file, HttpServletRequest request, HttpServletResponse response) throws Exception;

    public byte[] read(String id) throws Exception;

    public List<SysAttachment> findClearList();

    public void deleteAttachment(SysAttachment sysAttachment) throws Exception;
}